<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>元素显示模式转换</title>
    <style>
        a {
            width: 150px;
            height: 50px;
            color: pink;
            background-color: rgb(85, 212, 244);
            text-align: center;
            /* 把行内元素 a 转换为块级元素 */
            display: block;
        }

        div {
            width: 200px;
            height: 150px;
            background-color: #c21010;
            /* 把div 块级元素转换为行内元素 */
            display: inline;
        }

        span {
            width: 300px;
            height: 150px;
            background: skyblue;
            /* 把 span 行内元素转化为行内块元素 */
            display: inline-block;
        }
    </style>
</head>

<body>
    <a href="#">檀健次宝宝</a>
    <a href="#">檀健次宝宝</a>
    <div>我是块级元素</div>
    <div>我是块级元素</div>
    <span>行内元素转换为行内块元素</span>
    <span>行内元素转换为行内块元素</span>
</body>

</html>